package com.yixun.qfbao.enums;

public enum QfSmsTemplateEnum {

    SMS_VERIFICATION("5a6b6d51-10b8-4499-89df-2d44e25af4ee", "44d942531e964b88a67fcb568a72d9dd","验证码{Param}，您正在尝试修改登录密码，请妥善保管账户信息。","测试模板"),
    SMS_AGENCY_APPEAL("56e237cb-7cfa-4ac3-aad1-c5315a6737ae", "qfcxb001","项目：{Param}，客户：{Param}，报备人：{Param}，申诉原因: {Param}，请及时处理","中介-申诉"),
    SMS_AGENCY_REPORT("5e3fee31-7871-4399-86c0-e7d98afe9f31", "qfcxb002","带看项目:{Param}，对接人:{Param}，地产:{Param}，门店:{Param}，经纪人:{Param}，联系电话:{Param}，客户:{Param}，联系电话:{Param}，到访时间:{Param}","中介-报备"),
    SMS_ASSISTANT_APPEAL_RESULT("a2f11b8a-698c-422f-aae4-adf290ba6f56", "qfcxb003","项目：{Param}，客户：{Param}，申述: {Param}，原因: {Param}，请及时跟进","案场-申诉处理结果提醒"),
    SMS_APPOINT_LOOK("c60192df-043d-491d-9180-3a41b3820222","qfcxb004","项目：{Param}，客户：{Param}，预约看房时间：{Param}，请及时带客户去看房","预约-看房"),
    SMS_ASSISTANT_REPORT_AUDIT("4c8fa73b-c0ca-47ce-9080-576d60245ce0","qfcxb005","项目：{Param}，客户：{Param}，审核{Param}，原因:{Param}，请及时跟进","案场-报备审核"),
    SMS_VISIT_PROTECT("65c7c86c-5e36-4acf-9ac7-0bd98a4eb335","qfcxb006","项目：{Param}，客户：{Param}，已到访保护时间：{Param}，请及时跟进客户","到访保护期提醒"),
    SMS_ASSISTANT_SIGN("e0c66987-b353-4531-845b-16a3e440f4ea","qfcxb007","项目：{Param}，客户：{Param}，报备已进行了签约交易，请及时跟进","案场-变更交易状态为签约"),
    SMS_ASSISTANT_COMMISSION("16554edc-b4ae-4f93-9631-34feccb94d0e","qfcxb008","项目：{Param}，客户：{Param}，报备已成功结佣！结佣金额：{Param}！","案场-结佣操作"),
    SMS_ASSISTANT_REPLACE_REPORT("695fa2e6-1542-42ec-98b3-9a0fbe946e99","qfcxb009","项目：{Param}，客户：{Param}，报备人：{Param}，请及时跟进","案场助手代报备"),
    SMS_RESET_PWD("edbe7bc9-fd23-433c-ab8f-a2e556fab99e","qfcxb010","尊敬的客户：{Param}，您的登录密码已被重置为：{Param}，请及时修改","重置密码"),
    SMS_WARN_AUDIT("e2079549-afd7-4c0a-93ad-4f47bb8cf68d","qfcxb011","客户已到访：到访确认申请！客户：{Param} {Param}，在{Param}看了{Param}，接待的置业顾问：{Param}。报备经纪人：{Param} {Param}！","提醒审核"),
    SMS_EDIT_PWD("9b863e26-a9fd-42e8-b3c3-0405612b8669","qfcxb012","您的短信验证码是{Param},本条短信用于用户修改密码，有效时间{Param}分钟，请勿泄露。","密码修改"),
    SMS_LOGIN("","qdgl","您的短信验证码是{Param}，本短信用于系统登录，有效时间{Param}分钟，请勿泄漏。","账号登录"),
    SMS_REGISTER_USER("972d8fcf-c841-4f8a-8f63-549ccedeac24","qfcxb013","您的短信验证码是{Param},本条短信用于新用户注册，请勿泄露。","注册用户"),
    SMS_REGISTER_SUCCESS("7f104e7e-7c06-4812-86a7-7d221a19d02a","qfcxb014","您已注册成功，您的初始密码为:{Param}，请及时修改！","注册成功通知"),
    SMS_SIGNED_SUCCESS("91410d28-6674-4342-a7b9-d98e9ede71c9","qfcxb015","签约成功！签约客户：{Param} {Param}，于{Param}签约{Param}，请及时进行业务跟进","签约成功"),
    SMS_HENGXIN_MOBILE_CHECK("5ba64567-edb9-42b5-8b2e-163baf421656","hxqdw","验证码{Param},中国百强房企恒信集团欢迎您莅临{Param},感谢您的支持，祝您生活愉快！关注恒信房产营销管理中心微信公众号获取更多房产动态。","恒信号码验真"),
    COMPANY_REGESIT_SUCCESS("","QDGLSQB","合作机构申请成功，您的账号{Param}已被注册为管理员，可正常使用{Param}。","公司注册成功"),
    COMPANY_REGESIT_FAIL("","QDGLZC","合作机构申请不通过，原因是{Param}，详情可咨询平台管理员。","公司注册失败"),
    ;


    private String uuid;
    private String id;
    private String msg;
    private String name;

    QfSmsTemplateEnum(String uuid, String id, String msg, String name) {
        this.id = id;
        this.uuid = uuid;
        this.msg = msg;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getUuid(){
        return uuid;
    }

    public String getMsg(){
        return msg;
    }
    public String getName() {
        return name;
    }

    public static QfSmsTemplateEnum getById(String id) {
        for (QfSmsTemplateEnum item : QfSmsTemplateEnum.values()) {
            if (item.getId().equals(id)) {
                return item;
            }
        }
        return null;
    }
    
    /**
     * 获取模板对应的内容
     * @param id
     * @return
     */
    public static String getContentById(String id) {
    	 for (QfSmsTemplateEnum item : QfSmsTemplateEnum.values()) {
             if (item.getId().equals(id)) {
                 return item.getMsg();
             }
         }
         return null;
    }
}
